package com.pkcargo.util.spider.httpclient;

import com.pkcargo.util.spider.WebClient;
import com.pkcargo.service.cargo.FreightManager;
import com.pkcargo.entity.user.User;

import java.io.IOException;

import org.springframework.beans.factory.annotation.Autowired;

/**
 * User: Howard.Lin - linhua3721@gmail.com
 * DateTime: 2009-5-14 11:35:11
 * This is Pkcargo.com project.提供全球物流信息的抓取和垂直搜索
 */
public class ShippingChina extends WebClient {
    @Autowired
    private FreightManager freightManager;
    private User user = new User(2L);//根据该网站的用户ID来确定

    private static String loginAction = "http://en.shippingchina.com/office/signin/signin.html";
    private static String url = "http://cargo.shippingchina.com/cargofcl/index/index.html";
    @Override
    public void spiderJob() throws IOException {
        loginAuto();
    }

    private void loginAuto() throws IOException {
        String[] params = {"loginname", "shippingchinaweb", "password", "lin234"};
        String testurl = "http://cargo.shippingchina.com/cargofcl/index/slightlyDetail/id/25767.html";
        System.out.println("");
        //    System.out.println(getPostContent(testurl));
    }

}
